import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'

import './assets/css/index.scss'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
Vue.config.productionTip = false
if(localStorage.getItem("userId")&&localStorage.getItem("username")){
  store.commit("user/setUserId",localStorage.getItem("userId"));
  store.commit("user/setUsername",localStorage.getItem("userId"));
}
// import axios from 'axios'
// import flvjs from 'flv.js'
// Vue.use(flvjs);
// Vue.prototype.$http = axios;
// // 弹幕
import { vueBaberrage } from 'vue-baberrage'
Vue.use(vueBaberrage)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

